#ifndef _memory_H_
#define _memory_H_

#include "stdint.h"


typedef struct
{
	uint16_t MemAddress;
	uint16_t MemAddSize;
	uint8_t *pData;
	uint16_t Size;
	uint16_t crc;
}memory_def_s;


void Memory_Init(void);
uint8_t Memory_ReadData(uint8_t *data,uint8_t size,uint32_t file_add);
uint8_t Memory_WriteData(uint8_t *data,uint8_t size,uint32_t file_add);
uint8_t Memory_Clear(void);
#endif
